package com.ruoyi.crm.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.crm.mapper.ReportSalesMapper;
import com.ruoyi.crm.domain.ReportSales;
import com.ruoyi.crm.service.IReportSalesService;

/**
 * 销售报表Service业务层处理
 *
 * @author ruoyi
 * @date 2021-09-01
 */
@Service
public class ReportSalesServiceImpl implements IReportSalesService
{
    @Autowired
    private ReportSalesMapper reportSalesMapper;

    /**
     * 查询销售报表
     *
     * @param id 销售报表主键
     * @return 销售报表
     */
    @Override
    public ReportSales selectReportSalesById(String id)
    {
        return reportSalesMapper.selectReportSalesById(id);
    }

    /**
     * 查询销售报表列表
     *
     * @param reportSales 销售报表
     * @return 销售报表
     */
    @Override
    public List<ReportSales> selectReportSalesList(ReportSales reportSales)
    {
        return reportSalesMapper.selectReportSalesList(reportSales);
    }

    /**
     * 新增销售报表
     *
     * @param reportSales 销售报表
     * @return 结果
     */
    @Override
    public int insertReportSales(ReportSales reportSales)
    {
        return reportSalesMapper.insertReportSales(reportSales);
    }

    /**
     * 修改销售报表
     *
     * @param reportSales 销售报表
     * @return 结果
     */
    @Override
    public int updateReportSales(ReportSales reportSales)
    {
        return reportSalesMapper.updateReportSales(reportSales);
    }

    /**
     * 批量删除销售报表
     *
     * @param ids 需要删除的销售报表主键
     * @return 结果
     */
    @Override
    public int deleteReportSalesByIds(String[] ids)
    {
        return reportSalesMapper.deleteReportSalesByIds(ids);
    }

    /**
     * 删除销售报表信息
     *
     * @param id 销售报表主键
     * @return 结果
     */
    @Override
    public int deleteReportSalesById(String id)
    {
        return reportSalesMapper.deleteReportSalesById(id);
    }
}